package com.itmk.teacher.service;

import com.itmk.student_point.entity.StudentPoint;
import com.itmk.teacher.entity.*;

import java.util.List;

public interface TeacherService {
    //新增教师
    void add(Teacher teacher);

    //查询教师列表
    List<Teacher> list(TeacherParm parm);

    //查询分页总条数
    int getCount(TeacherParm parm);

    //根据id查询
    Teacher getById(int teacherId);

    //编辑
    void updateById(Teacher teacher);

    //删除
    void delete(String teacherId);

    //登录
    Teacher login(String teacherNum, String password);

    //查询教师所教授的课程
    List<TeacherVo> getTeachetList(TeacherCouresParm parm);

    //分页总条数
    int getTeachetCount(TeacherCouresParm parm);

    //查询学生信息
    List<TeacherStudentVo> listStu(TeacherParm parm);

    List<TeacherStudentVo> listInputStu(TeacherParm parm);

    //学生信息总条数
    int getStuCount(TeacherParm parm);
    //保存学生成绩
    void addPoint(StudentPoint studentPoint);
    //统计教师
    int getTotal();
     //查询原密码是否正确
    Teacher getUserByPas(int userId, String password);
    //更新密码
    void updatePassword(int userId,String password);
}
